package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.ContainerDTO;
import com.arpa.wms.domain.dto.InventoryStatusDTO;
import com.arpa.wms.domain.entity.InventoryStatus;
import com.arpa.wms.domain.vo.ContainerVO;
import com.arpa.wms.domain.vo.InventoryStatusVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 库存状态 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2020-08-03
 */
public interface InventoryStatusMapper extends BaseMapper<InventoryStatus> {

    /**
     * 查询列表
     * @param inventoryStatusDTO
     * @return
     */
    List<InventoryStatusVO> queryList(InventoryStatusDTO inventoryStatusDTO);

     /**
      *  @author: Allen chen
      *  @Date: 2020/10/10 9:15
      *  @Description: 根据code批量查询
      */
    List<InventoryStatusVO> getByCodes(@Param("list") List<String> list,@Param("groupCode")String groupCode);

    /**
     * 查询合计,包含总数
     * @param inventoryStatusDTO
     * @return
     */
    InventoryStatusVO queryListSum(InventoryStatusDTO inventoryStatusDTO);

    int changeStatus(@Param("codes")String codes,@Param("status")String status,@Param("deleteFlag")String deleteFlag,@Param("groupCode")String groupCode);

}
